<template>
    <view class="box">
		<scroll-view class="scroll-v list" enableBackToTop="true" scroll-y @scrolltolower="loadMore(index1)">
			<view  class="guwen" v-for="(guwen,index) in guwens" :key="guwen.id">
				<guwen-item :options="guwen"  @click="goDetail(guwen)"></guwen-item>
			</view>
			
		</scroll-view>
	<view class="bottom">申请入驻</view>
    </view>
</template>
<script>
    import guwenItem from './item.vue';

    // 缓存每页最多
    const MAX_CACHE_DATA = 100;
    // 缓存页签数量
    const MAX_CACHE_PAGE = 3;

    

    export default {
        components: {
            guwenItem
        },
        data() {
            return {
                guwens: [{
                    name: '楼盘头条',
                    company: 'guanzhu',
					wechat:'123123123',
					house:'恒大广场',
					lookNum:100,
					activeNum:200,
					likeNum:100,
					face:'/static/img/face.jpg',
                }, {
                  name: '楼盘头条',
                  company: 'guanzhu',
                  wechat:'123123123',
                  house:'恒大广场',
                  lookNum:100,
				  face:'/static/img/face.jpg',
                  activeNum:200,
                  likeNum:100
                }, {
                   name: '楼盘头条',
                   company: 'guanzhu',
                   wechat:'123123123',
                   house:'恒大广场',
                   lookNum:100,
                   activeNum:200,
                   likeNum:100,
				   face:'/static/img/face.jpg',
                }, {
                   name: '楼盘头条',
                   company: 'guanzhu',
                   wechat:'123123123',
                   house:'恒大广场',
                   lookNum:100,
                   activeNum:200,
                   likeNum:100,
				   face:'/static/img/face.jpg',
                }],
                scrollInto: "",
                showTips: false,
                navigateFlag: false,
                pulling: false,
                refreshIcon: ""
            }
        },
        onLoad() {
        },
		onShareAppMessage(){
			
		},
        methods: {
            getList(index) {
            },
            goDetail(e) {
                this.navigateFlag = true;
                uni.navigateTo({
                    url: './detail?id=' 
                });
                setTimeout(() => {
                    this.navigateFlag = false;
                }, 200)
            }
        }
    }
</script>

<style lang="scss">
    .box{
		.guwen{
			margin-top:13px;
		}
		.bottom{
			position: fixed;
			bottom:0;
			background-color: #007AFF;
			padding: 10px 0;
			width:100%;
			font-size: 45upx;
			text-align: center;
			color:white;
		}
	}
</style>
